package com.smfx.yxt;

import java.util.List;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.fastjson.JSON;
import com.smfx.yxt.reqVo.LateCoachQueryVO;
import com.smfx.yxt.service.ILateCoachService;
import com.smfx.yxt.view.LateCoachPlanView;
import com.smfx.yxt.view.LateCoachRegTotalView;

public class LateCoachService extends BaseTest{

	@Autowired
	private ILateCoachService lateCoachService;
	
	@Test
	public void getRegTotalList() {
		try {
			LateCoachQueryVO vo = new LateCoachQueryVO();
			List<LateCoachRegTotalView> list = lateCoachService.selectRegTotalList(vo);
			System.out.println(JSON.toJSONString(list));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	@Test
	public void todayLateCoachList() {
		try {
			LateCoachQueryVO vo = new LateCoachQueryVO();
			vo.setCoachType(2);
			vo.setWeek(1);
			List<LateCoachPlanView> list = lateCoachService.selectTodayLateCoachList(vo);
			System.out.println(JSON.toJSONString(list));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
